package com.pay.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;

import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author Peng
 * @since 2018-12-10
 */
@TableName("t_merchant_account_detail")
public class MerchantAccountDetail implements Serializable {

	private static final long serialVersionUID = 1L;

	@TableField(exist=false)
	private String typename ; 
	
	@TableField(exist=false)
	private Merchant merchant ;
	
	/**
	 * 账户明细表
	 */
	@TableId(value = "id", type = IdType.AUTO)
	private Integer id;

	/**
	 * 明细类型
	 */
	private Integer typeid;

	/**
	 * 原始金额
	 */
	private BigDecimal original;

	/**
	 * 操作金额
	 */
	private BigDecimal cost;

	/**
	 * 最终金额
	 */
	private BigDecimal last;

	/**
	 * 是否是支出1是支出 0是收入
	 */
	private Integer isout;

	/**
	 * 明细创建时间
	 */
	private Date createtime;

	/**
	 * 乐观锁
	 */
	@Version
	private Integer version;

	private Integer merId ; 
	
	private String remark ; 

	public String getTypename() {
		return typename;
	}

	public void setTypename(String typename) {
		this.typename = typename;
	}

	public Merchant getMerchant() {
		return merchant;
	}

	public void setMerchant(Merchant merchant) {
		this.merchant = merchant;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Integer getMerId() {
		return merId;
	}

	public void setMerId(Integer merId) {
		this.merId = merId;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getTypeid() {
		return typeid;
	}

	public void setTypeid(Integer typeid) {
		this.typeid = typeid;
	}

	public BigDecimal getOriginal() {
		return original;
	}

	public void setOriginal(BigDecimal original) {
		this.original = original;
	}

	public BigDecimal getCost() {
		return cost;
	}

	public void setCost(BigDecimal cost) {
		this.cost = cost;
	}

	public BigDecimal getLast() {
		return last;
	}

	public void setLast(BigDecimal last) {
		this.last = last;
	}

	public Integer getIsout() {
		return isout;
	}

	public void setIsout(Integer isout) {
		this.isout = isout;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public Integer getVersion() {
		return version;
	}

	public void setVersion(Integer version) {
		this.version = version;
	}

	@Override
	public String toString() {
		return "MerchantAccountDetail{" +
				"id=" + id +
				", typeid=" + typeid +
				", original=" + original +
				", cost=" + cost +
				", last=" + last +
				", isout=" + isout +
				", createtime=" + createtime +
				", version=" + version +
				"}";
	}
}
